package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import Entidades.UsuarioEnt;

public final class usuarioActualizar_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List<String> _jspx_dependants;

  private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector;

  public java.util.List<String> getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html; charset=ISO-8859-1");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;
      _jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");

      out.write('\n');

     int actualizado = request.getAttribute("actualizado") == null ? -1 : Integer.parseInt(request.getAttribute("actualizado").toString());
    
    UsuarioEnt usuario;
    usuario = request.getAttribute("usuario") != null ? (UsuarioEnt) request.getAttribute("usuario") : null;

      out.write("\n");
      out.write("\n");
      out.write("<html >\n");
      out.write("    <head>\n");
      out.write("\n");
      out.write("        <script type=\"text/javascript\" src=\"js/tabber.js\"></script>\n");
      out.write("        <link rel=\"stylesheet\" href=\"css/example.css\" TYPE=\"text/css\" MEDIA=\"screen\"/>\n");
      out.write("        <link rel=\"stylesheet\" href=\"css/example-print.css\" TYPE=\"text/css\" MEDIA=\"print\"/>\n");
      out.write("        <link rel=\"stylesheet\" href=\"css/MenuPrincipal.css\" TYPE=\"text/css\" MEDIA=\"screen\"/>\n");
      out.write("        <script type=\"text/javascript\" src=\"js/general.js\"></script>\n");
      out.write("        <script type=\"text/javascript\" src=\"js/jquery-1.5.2.min.js\"></script>\n");
      out.write("        <script type=\"text/javascript\" src=\"js/Funciones.js\"></script>\n");
      out.write("        <script type='text/javascript' src=\"//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js\"/>\n");
      out.write("        <script type=\"text/javascript\" src=\"js/jquery-1.4.2.min.js\"></script>\n");
      out.write("        <script type=\"text/javascript\" src=\"js/jquery.fixedMenu.js\"></script>\n");
      out.write("        <script type=\"text/jav ascript\" src=\"js/general.js\"></script>\n");
      out.write("        <link rel=\"stylesheet\" type=\"text/css\" href=\"css/fixedMenu_style2.css\" />\n");
      out.write("        <link rel=\"stylesheet\" href=\"css/style.css\" />\n");
      out.write("        \n");
      out.write("        <link rel=\"stylesheet\" type=\"text/css\" href=\"css/styleMenu.css\" />\n");
      out.write("        \n");
      out.write("        <script language=\"javaScript\" type=\"text/javascript\">\n");
      out.write("  \n");
      out.write("\t  function inicio() {\n");
      out.write("\t\t  window.location.href = \"./ContenidoShow\";\n");
      out.write("\t  }\n");
      out.write("  \n");
      out.write("\t</script>\n");
      out.write("        \n");
      out.write("    </head>\n");
      out.write("\n");
      out.write("    <body>\n");
      out.write("        \n");
      out.write("        <div style=\"text-align: right;\">\n");
      out.write("            \n");
      out.write("            <a href=\"./CerrarSesion\" onclick=\"cerrarSession();\" style=\"text-decoration:none; color: #f7db64;\"/>Cerrar Sesion</a>\n");
      out.write("        </div>\n");
      out.write("      \n");
      out.write("        <div id=\"contenedorCarrusel\">\n");
      out.write("            <img src=\"imagenes/menu.png\" />\n");
      out.write("        </div> \n");
      out.write("\n");
      out.write("        \n");
      out.write("        <div style=\"background: #362f2d\">  \n");
      out.write("        \n");
      out.write("           <ul class=\"dark_menu\">\n");
      out.write("\n");
      out.write("                <li><a href=\"./ContenidoShow\" onclick=\"inicio();\" class=\"selected\">Inicio</a></li>\n");
      out.write("\n");
      out.write("                <li>\n");
      out.write("                    <a href=\"#\">Usuarios</a>\n");
      out.write("\n");
      out.write("                    <!-- Sub Menu Begin -->\n");
      out.write("\n");
      out.write("                    <ul>\n");
      out.write("\n");
      out.write("                        <li><a href=\"./usuarioListar.jsp\">Listar Usuarios</a></li>\n");
      out.write("\n");
      out.write("                        <li><a href=\"./usuarioIngresar.jsp\">Ingresar Usuarios</a></li>\n");
      out.write("\n");
      out.write("                    </ul>\n");
      out.write("\n");
      out.write("                    <!-- Sub Menu End -->\n");
      out.write("\n");
      out.write("                </li>\n");
      out.write("\n");
      out.write("                <li>\n");
      out.write("\n");
      out.write("                    <a href=\"#\">Clientes</a>\n");
      out.write("\n");
      out.write("                    <!-- Sub Menu Begin -->\n");
      out.write("\n");
      out.write("                    <ul>\n");
      out.write("\n");
      out.write("                        <li><a href=\"#\">Hoja de vida</a></li>\n");
      out.write("\n");
      out.write("                    </ul>\n");
      out.write("\n");
      out.write("                    <!-- Sub Menu End -->\n");
      out.write("\n");
      out.write("                </li>\n");
      out.write("\n");
      out.write("                    <li>\n");
      out.write("\n");
      out.write("                    <a href=\"#\">Instructores</a>\n");
      out.write("\n");
      out.write("                    <!-- Sub Menu Begin -->\n");
      out.write("\n");
      out.write("                    <ul>\n");
      out.write("\n");
      out.write("                        <li><a href=\"#\">Planta</a></li>\n");
      out.write("\n");
      out.write("                        <li><a href=\"#\">Dominical</a></li>\n");
      out.write("\n");
      out.write("                    </ul>\n");
      out.write("\n");
      out.write("                    <!-- Sub Menu End -->\n");
      out.write("\n");
      out.write("                </li>\n");
      out.write("\n");
      out.write("                    <li>\n");
      out.write("\n");
      out.write("                    <a href=\"#\">Gestionar Maestros</a>\n");
      out.write("\n");
      out.write("                    <!-- Sub Menu Begin -->\n");
      out.write("\n");
      out.write("                    <ul>\n");
      out.write("\n");
      out.write("                        <li><a href=\"#\">Agenda</a></li>\n");
      out.write("\n");
      out.write("\n");
      out.write("                    </ul>\n");
      out.write("\n");
      out.write("                    <!-- Sub Menu End -->\n");
      out.write("\n");
      out.write("                </li>\n");
      out.write("\n");
      out.write("\n");
      out.write("                    <li>\n");
      out.write("\n");
      out.write("                    <a href=\"#\">Maquinas</a>\n");
      out.write("\n");
      out.write("                    <!-- Sub Menu Begin -->\n");
      out.write("\n");
      out.write("                    <ul>\n");
      out.write("\n");
      out.write("                        <li><a href=\"./maquinaListar.jsp\">Listar Maquinas</a></li>\n");
      out.write("\n");
      out.write("                        <li><a href=\"./maquinaIngresar.jsp\">Ingresar Nueva Maquina</a></li>\n");
      out.write("\n");
      out.write("                    </ul>\n");
      out.write("\n");
      out.write("                    <!-- Sub Menu End -->\n");
      out.write("\n");
      out.write("                </li>\n");
      out.write("\n");
      out.write("\n");
      out.write("                    <li>\n");
      out.write("\n");
      out.write("                    <a href=\"#\">Ventas</a>\n");
      out.write("\n");
      out.write("                    <!-- Sub Menu Begin -->\n");
      out.write("\n");
      out.write("                    <ul>\n");
      out.write("\n");
      out.write("                        <li><a href=\"./ventaIngresar.jsp\">Ingresar Nueva Venta</a></li>\n");
      out.write("\n");
      out.write("                        <li><a href=\"./ventaListar.jsp\">Listar Ventas</a></li>\n");
      out.write("\n");
      out.write("                    </ul>\n");
      out.write("\n");
      out.write("                    <!-- Sub Menu End -->\n");
      out.write("\n");
      out.write("                </li>\n");
      out.write("\n");
      out.write("\n");
      out.write("                <li>\n");
      out.write("\n");
      out.write("                    <a href=\"#\">Contenido</a>\n");
      out.write("\n");
      out.write("                    <!-- Sub Menu Begin -->\n");
      out.write("\n");
      out.write("                    <ul>\n");
      out.write("\n");
      out.write("                        <li><a href=\"./contenidoIngresar.jsp\">Ingresar Nuevo Contenido</a></li>\n");
      out.write("\n");
      out.write("                        <li><a href=\"./contenidoListar.jsp\">Listar Contenido</a></li>\n");
      out.write("\n");
      out.write("                    </ul>\n");
      out.write("\n");
      out.write("                    <!-- Sub Menu End -->\n");
      out.write("\n");
      out.write("                </li>\n");
      out.write("\n");
      out.write("            </ul>\n");
      out.write("\n");
      out.write("       </div>\n");
      out.write("        \n");
      out.write("        \n");
      out.write("       <div align=\"center\" style=\"padding-top:30px \">  \n");
      out.write("            <FONT FACE=\"arial\" size=\"6\" COLOR=\"#282321\" style=\"text-align: center\">Actualizar Usuario</FONT>\n");
      out.write("            \n");
      out.write("            \n");
      out.write("            \t<form action=\"./UsuarioUp\" method=\"POST\">\n");
      out.write("                                \n");
      out.write("                               ");

                                    if (actualizado == 5) {
                                
      out.write("\n");
      out.write("                                <div style=\"text-align: center\">\n");
      out.write("                                    \n");
      out.write("                                        <span style=\"color:#f6bd30;text-align: center\">Los parametros con * son obligatorios</span>\n");
      out.write("                                   \n");
      out.write("                                </div>\n");
      out.write("                                ");
 }
      out.write("\n");
      out.write("                                \n");
      out.write("                                ");

                                    if (actualizado == 0) {
                                
      out.write("\n");
      out.write("                                <div style=\"text-align: center\">\n");
      out.write("                                    \n");
      out.write("                                        <span style=\"color:#f6bd30;text-align: center\">Error al actualizar el usuario</span>\n");
      out.write("                                   \n");
      out.write("                                </div>\n");
      out.write("                                ");
 }
      out.write("\n");
      out.write("                                \n");
      out.write("                                ");

                                if (actualizado == 1) {
                                
      out.write("\n");
      out.write("                                <div style=\"text-align: center\">\n");
      out.write("                                    \n");
      out.write("                                        <span style=\"color:#f6bd30;text-align: center\">Usuario actualizado Con Exito</span>\n");
      out.write("                                   \n");
      out.write("                                </div>\n");
      out.write("                                ");
 }
      out.write("\n");
      out.write("                                \n");
      out.write("\t\t<div align=\"center\" style=\"padding-top:30px \">\n");
      out.write("\t\t\t<table>\n");
      out.write("\t\t\t\t\n");
      out.write("\t\t\t\t<tr>\n");
      out.write("\t\t\t\t\t<td><label>Nombre: </label>  </td>\n");
      out.write("\t\t\t\t\t<td><input id=\"nombre\" name=\"nombre\" type=\"text\" value=\"");
      out.print(usuario.getNombre() );
      out.write("\" > </td>\n");
      out.write("\t\t\t\t</tr>\t\n");
      out.write("\t\t\t\t\t\n");
      out.write("\t\t\t\t<tr>\n");
      out.write("\t\t\t\t\t<td><label>Identificacion </label>  </td>\n");
      out.write("                                        <td><input id=\"identificacion\" name=\"identificacion\" type=\"text\" value=\"");
      out.print(usuario.getIdentificacion() );
      out.write("\"> </td>\n");
      out.write("\t\t\t\t</tr>\t\n");
      out.write("\t\t\t\t\n");
      out.write("                                <tr>\n");
      out.write("\t\t\t\t\t<td><label>Apellido Uno: </label></td>\n");
      out.write("\t\t\t\t\t<td><input id=\"apellidoUno\" name=\"apellidoUno\" type=\"text\" value=\"");
      out.print(usuario.getApellidoUno() );
      out.write("\"></td>\t\t\t\t\t\n");
      out.write("\t\t\t\t</tr>\n");
      out.write("                                \n");
      out.write("                                <tr>\n");
      out.write("                                        <td><label>Apellido Dos: </label></td>\n");
      out.write("\t\t\t\t\t<td><input id=\"apellidoDos\" name=\"apellidoDos\" type=\"text\" value=\"");
      out.print(usuario.getApellidoDos() );
      out.write("\"></td>\t\t\t\t\t\n");
      out.write("\t\t\t\t</tr>\n");
      out.write("                                \n");
      out.write("\t\t\t\t<tr>\n");
      out.write("\t\t\t\t\t<td><label>Perfil</label></td>\n");
      out.write("\t\t\t\t\t<td>                                            \n");
      out.write("                                          <select name=\"perfil\" >\n");
      out.write("                                                <option selected value=\"0\">...</option>                                    \n");
      out.write("                                                <option id=\"select\" value=\"1\">Administrador</option>\n");
      out.write("                                                <option id=\"select\" value=\"2\">Coordinador</option>\n");
      out.write("                                                <option id=\"select\" value=\"3\">Cliente</option>\n");
      out.write("                                           </select>\n");
      out.write("                                        </td>\n");
      out.write("\t\t\t\t</tr>\n");
      out.write("                                \n");
      out.write("                                <tr>\n");
      out.write("                                        <td><label>Tipo Usuario </label></td>\n");
      out.write("\t\t\t\t\t<td><input id=\"tipoUsuario\" name=\"tipoUsuario\" type=\"text\" value=\"");
      out.print(usuario.getTipoUsuario() );
      out.write("\"></td>\t\t\t\t\t\n");
      out.write("\t\t\t\t</tr>\n");
      out.write("                                \n");
      out.write("                                \n");
      out.write("                                <tr>\n");
      out.write("                                        <td><label>Correo: </label></td>\n");
      out.write("\t\t\t\t\t<td><input id=\"correo\" name=\"correo\" type=\"text\" value=\"");
      out.print(usuario.getCorreo() );
      out.write("\"></td>\t\t\t\t\t\n");
      out.write("\t\t\t\t</tr>\n");
      out.write("                                \n");
      out.write("\n");
      out.write("\t\t\t\t\n");
      out.write("\n");
      out.write("\t\t\t\n");
      out.write("\t\t\t</table>\n");
      out.write("\t\t\t\n");
      out.write("\t\t\t<div align=\"center\" style=\"margin-top: 30px\">\n");
      out.write("\t\t\t\t<input type=\"submit\" value=\"Guardar\" width=\"30\" height=\"30\" class=\"button white\">\t\t\t\n");
      out.write("\t\t\t</div>\n");
      out.write("\t\t</div>\n");
      out.write("\t </form>\n");
      out.write("                                \n");
      out.write("       </div>\n");
      out.write("\n");
      out.write("</body>\n");
      out.write("\n");
      out.write("</html>\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
